<?php
class ORMpz_file extends ORMBase {
  public function __construct() {
    parent::__construct('pz_file');
  }

  public function __toEpObject($myManager, $epObject, $object) {
    if (isset($object->track_id)) {
      $epObject->track_id =  $object->track_id;
    }
    if (isset($object->client_id)) {
      $epObject->client_id =  $object->client_id;
    }
    if (isset($object->visa_track_id)) {
      $epObject->visa_track_id =  $object->visa_track_id;
    }
    if (isset($object->name)) {
      $epObject->name =  $object->name;
    }
    if (isset($object->unique_id)) {
      $epObject->unique_id =  $object->unique_id;
    }
    if (isset($object->type)) {
      $epObject->type =  $object->type;
    }
    if (isset($object->link)) {
      $epObject->link =  $object->link;
    }
    if (isset($object->size)) {
      $epObject->size =  $object->size;
    }
    return $epObject;
  }

  public function __toObject($myManager, $epObject, $object) {
    $object->id = $epObject->oid;
    $object->track_id = $epObject->track_id;
    $object->client_id = $epObject->client_id;
    $object->visa_track_id = $epObject->visa_track_id;
    $object->name = $epObject->name;
    $object->unique_id = $epObject->unique_id;
    $object->type = $epObject->type;
    $object->link = $epObject->link;
    $object->size = $epObject->size;
    return $object;
  }
}
?>
